<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="bootstrap.min.css"/>
		<script src="vue.js"></script>
		<script src="axios.min.js"></script>
	</head>
	<body>
		<div id="app">
			<table class="table">
				<tr>
					<td>编号</td>
					<td>图片</td>
					<td>姓名</td>
					<td>号码</td>
					<td>病情分类</td>
					<td>挂号费</td>
				</tr>
				<tr v-for="v in docters">
					<td>{{v.ID}}</td>
					<td><img :src="v.img" width="50px"></td>
					<td>{{v.name}}</td>
					<td>{{v.tel}}</td>
					<td>{{v.types}}</td>
					<td>{{v.price}}</td>
				</tr>
			</table>
			
			
		</div>
	</body>
</html>
<script>
var app=new Vue({
	el:"#app",
	data:{
		docters:[],
		
	},methods:{
		
	},created:function(){
		axios.get("http://127.0.0.1:8080/list").then(function(res){
			console.log(res)
			app.docters=res.data.data
		})
	}
})



</script>
